<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ include file="taglibs.jsp" %>
<t:page title="Grade List" page="Grades" section="Main">
    <jsp:attribute name="upperRight">
        <td align="right">
            <s:form action="/Grade.action">
                <table>
                    <tr>
                        <td>
                            <s:label name="filterText">Filter:</s:label><s:text name="filterText"/><s:submit name="applyFilter" value="Search"/>
                        </td>
                    </tr>
                </table>
            </s:form>
        </td>
    </jsp:attribute>
    <jsp:body>
        <s:form action="/Grade.action">
            <dt:table uid="itemtable" list="${actionBean.grades}" id="obj" class="display" pagesize="50" requestURI="Grade.action" sort="list" >
                <dt:column class="checkboxcol">
                    <s:checkbox name="gradeIds" value="${obj.id}"
                                onclick="handleCheckboxRangeSelection(this, event);"/>
                </dt:column>
                <dt:column property="id" title="ID"/>
                <dt:column property="grade" title="Grade" maxLength="30"/>
                <dt:column property="sortOrder" title="Sort Order"/>
                <dt:column>
                    <s:link href="/Grade.action" event="preEdit">
                        Edit
                        <s:param name="grade.id" value="${obj.id}"/>
                        <s:param name="page" value="${actionBean.page}"/>
                    </s:link>
                </dt:column>
            </dt:table>
            <div class="buttons">
                <s:hidden name="page"/>
                <s:submit name="addNew" value="Add New"/>
                <s:submit name="deleteSelected" value="Delete Selected"/>
            </div>
        </s:form>
    </jsp:body>
</t:page>